<style>

.dtable{display:table;width:auto;margin:0px auto;}
.drow{display:table-row;height:25px;line-height:25px;}
.dlcell{display:table-cell;text-align:right;width:150px;}
.drcell{display:table-cell;text-align:left;width:450px;padding-left:10px;}

</style>
<script type="text/javascript">
jQuery(function(){
	
});
</script>
<div id="main">
    <div class="dtable">
		<form action="admin.php?mo=action&do=smtpSet" method="post" enctype="multipart/form-data" name="form1" id="form1">
        <div class="drow">
            <span class="dlcell"><?php if (isset($SmtpSsl)) echo $SmtpSsl;?>: </span>
            <span class="drcell">
            	<select id="smtp_ssl" name="smtp_ssl">
                
<?php if(is_array($yes_no)) foreach($yes_no as $k => $v) { ?>
                <option value="<?php if (isset($k)) echo $k;?>"<?php if ($k==$smtp_ssl) { ?> selected="selected"<?php } ?>><?php if (isset($v)) echo $v;?></option>
                <?php } ?>
                </select>
            </span>
        </div>
        <div class="drow">
        	<span class="dlcell"><?php if (isset($SmtpHost)) echo $SmtpHost;?>: </span>
            <span class="drcell">
            <input type="text" name="smtp_host" id="smtp_host" value="<?php if (isset($smtp_host)) echo $smtp_host;?>" size="50" maxlength="60" />
            </span>
        </div>
        <div>
            <span class="dlcell"><?php if (isset($SmtpPort)) echo $SmtpPort;?>: </span>
            <span class="drcell">
            <input type="text" name="smtp_port" id="smtp_port" value="<?php if (isset($smtp_port)) echo $smtp_port;?>" size="50" maxlength="60" />
            </span>
        </div>
        <div>
            <span class="dlcell"><?php if (isset($smtpFromName)) echo $smtpFromName;?>: </span>
            <span class="drcell">
            <input type="text" name="smtp_fromname" id="smtp_fromname" value="<?php if (isset($smtp_fromname)) echo $smtp_fromname;?>" size="50" maxlength="60" />
            </span>
        </div>
<div>
            <span class="dlcell"><?php if (isset($SmtpEmail)) echo $SmtpEmail;?>: </span>
            <span class="drcell">
            <input type="text" name="smtp_email" id="smtp_email" value="<?php if (isset($smtp_email)) echo $smtp_email;?>" size="50" maxlength="60" />
            </span>
        </div>
        <div>
            <span class="dlcell"><?php if (isset($SmtpUser)) echo $SmtpUser;?>: </span>
            <span class="drcell">
            <input type="text" name="smtp_user" id="smtp_user" value="<?php if (isset($smtp_user)) echo $smtp_user;?>" size="50" maxlength="60" />
            </span>
        </div>
        <div>
            <span class="dlcell"><?php if (isset($SmtpPass)) echo $SmtpPass;?>: </span>
            <span class="drcell">
            <input type="text" name="smtp_pass" id="smtp_pass" value="<?php if (isset($smtp_pass)) echo $smtp_pass;?>" size="50" maxlength="60" />
            </span>
        </div>
        <div>
            <span class="dlcell"><?php if (isset($subjectTplText)) echo $subjectTplText;?>: </span>
            <span class="drcell">
            <input type="text" name="subjectTpl" id="subjectTpl" value="<?php if (isset($subjectTpl)) echo $subjectTpl;?>" size="70" />
            </span>
        </div>
        <div>
            <span class="dlcell"><?php if (isset($bodyTplText)) echo $bodyTplText;?>: </span>
            <span class="drcell">
            </span>
        </div>
        <div>
            <span class="dlcell"> </span>
            <span class="drcell">
            <textarea id="bodyTpl" name="bodyTpl" cols="60" rows="5"><?php if (isset($bodyTpl)) echo $bodyTpl;?></textarea>
            </span>
        </div>
        <div class="drow">
            <span class="dlcell"></span>
            <span class="drcell">
            <input type="submit" value="<?php if (isset($SubmitText)) echo $SubmitText;?>" />
            </span>
        </div>
      </form>
    </div>
</div>